package com.itheima.job;
import com.itheima.service.SetmealService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHandler;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@JobHandler(value = "job.test")
@Component
public class MyTestJob extends IJobHandler {

    @Resource
    private SetmealService setmealService;

    @Override
    public ReturnT<String> execute(String s) throws Exception {

        setmealService.clearOssObject();
        return SUCCESS;
    }

}